package cn.fangline.mapper;

import cn.fangline.model.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author 抽离
 * @since 2017-07-18
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user,test where test.name = user.user_name AND user.user_name = #{name}")
    public User selectWithTest(@Param("name") String name);


//    public List<User> SelectPage()
}